<?php

/**
 * messageuser.php
 * Created on 2015-10-16
 * Create by liuyang
 */

namespace haibao\www\model\data\message;

class MessageUser extends \haibao\www\model\data\Base{
	
    const PUSH_YES = 1;  //推送
    const PUSH_NO = 0;  //不推送
    
    /**
     * UserId 用户ID
     */
    public $UserId;
    
    /**
     * 是否推送 1 推送 0不推送
     */
    public $IsPush = 1;
    
    /**
     * 未读评论消息数 默认0
     */
    public $UnReadCommentCount = 0;
    
    /**
     * 未读私人消息数 默认0
     */
    public $UnReadPrivateCount = 0;
    
    /**
     * 未读系统消息数 默认0
     */
    public $UnReadSystemCount = 0;
    
    /**
     * 上次浏览时间
     */
    public $LastReadTime;
    
    /**
     * 创建时间
     */
    public $CreateTime;
    
    public function __construct() {
        parent::__construct();
        
        $this->intField('UserId', 'UserId',true);
        $this->intField('IsPush', 'IsPush');
        $this->intField('UnReadCommentCount', 'UnReadCommentCount');
        $this->intField('UnReadPrivateCount', 'UnReadPrivateCount');
        $this->intField('UnReadSystemCount', 'UnReadSystemCount');
        $this->dateField('LastReadTime', 'LastReadTime',true);
        $this->dateField('CreateTime', 'CreateTime',true);
        
        $this->setTableName('MessageUser');
    }
}